<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="entitybean.oc_user_name.EntityBeanOc_User_Name;"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	EntityBeanOc_User_Name edit_username = new EntityBeanOc_User_Name();
	edit_username = (EntityBeanOc_User_Name) request
			.getAttribute("edit_username");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>【北极海洋生态系统信息共享平台-修改用户名】</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/css_style.css">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/table_css.css">
		<script language="javascript">
	function submit_me()
	{
		var username=document.getElementById("username").value;
		var password=document.getElementById("password").value;
		var repassword=document.getElementById("repassword").value;
		var email=document.getElementById("email").value;
		var realname=document.getElementById("realname").value;
		if(password=="")
		{
			window.alert("请输入 密码");
			return false;
			}
		if(repassword=="")
		{
			window.alert("请输入 确认密码");
			return false;
			}
		if(email=="")
		{
			window.alert("请输入 邮件地址");
			return false;
			}
			if(realname=="")
		{
			window.alert("请输入 真实姓名");
			return false;
			}
			if(password!=repassword)
			{
				window.alert("请输入 密码 和 确认密码 不相等,请确认");
			return false;
				}
			var  obj=window.confirm("是否要修改用户信息?");
			if(obj==true)
			{
				
			}
		}
	</script>
	</head>

	<body>
	<form name="form1" method="post" action="">
	  <table width="300" class="custom_table_2">
	    <tr>
	      <th colspan="2" align="center"> 账户管理 </th>
        </tr>
	    <tr>
	      <th> 用户名 </th>
	      <td><input type="text" name="username" id="username"
						value="<%=edit_username.getUsername()%>" disabled></td>
        </tr>
	    <tr>
	      <th> 密码 </th>
	      <td><input type="password" name="password" id="password"
						value="<%=edit_username.getPassword()%>"></td>
        </tr>
	    <tr>
	      <th> 确认密码 </th>
	      <td><input type="password" name="repassword" id="repassword"></td>
        </tr>
	    <tr>
	      <th> 邮件地址 </th>
	      <td><input type="text" name="email" id="email"
						value="<%=edit_username.getEmail()%>"></td>
        </tr>
	    <tr>
	      <th> 真实姓名 </th>
	      <td><input type="text" name="realname" id="realname"
						value="<%=edit_username.getRealname()%>"></td>
        </tr>
	    <tr>
	      <td colspan="2" align="right"><input type="button" name="button2" id="button2" value="更新数据"
						class="btn_2k3_100" onClick="submit_me()">
	        <input type="button" name="button" id="button" value="关闭窗口"
						class="btn_2k3_100"></td>
        </tr>
      </table>
    </form>
    </body>
</html>
